package com.yi.mall.api;

import com.yi.mall.common.model.OrderInfo;
import com.yi.mall.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "OrderFeign", value = "mall-order-service",fallback = OrderFeignFallback.class)
public interface OrderFeign {
    @PutMapping("/orderInfo/update")
    public Result update(@RequestBody OrderInfo orderInfo);
    @DeleteMapping("/order/{id}")
    public Result removeById(@PathVariable("id") String id);
    @GetMapping("/orderInfo/{id}")
    public Result getById(@PathVariable("id") String id);
}
